package com.wjw.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wjw.entity.Collect;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
*@author WuJianWei
*@date 2022/2/28 20:00
*/
@Mapper
public interface CollectMapper extends BaseMapper<Collect> {
    @Insert("insert into collect(user_id,product_id,collect_time) values(#{userId},#{productId},now())")
     void  addCollect(int userId,int productId);
}